package com.vitech.javacertification.threads.notify;

public class NotifySucks {
	
	
	public static void main(String s[]) throws InterruptedException{
		
		
		Thread2 t2 = new Thread2();
		
		Thread t1 = new Thread(t2);
		
		t1.start();
		NotifySucks sucks = new NotifySucks();
		
		Thread.sleep(10000);
		
		synchronized(t2){
			
			System.out.println("Main waiting");
			t2.wait();
			System.out.println("Main notified");
		}
		
		
	}

}
